//spu相关的数据类型

//spu销售属性值类型
export interface SpuSaleAttrValueModel{
    id?: number;
  spuId?: number;
  saleAttrName?: string;

  saleAttrValueName: string;
  baseSaleAttrId: number;
}

//SPU销售属性值列表类型
export type SpuSaleAttrValueListModel=SpuSaleAttrValueModel[]

//Spu销售属性类型
export interface SupSaleAttrMOdel{
    id:number
    supId:number
    baseSaleAttrId:number
    saleAttrName:string
    spuSaleAttrValueList:SpuSaleAttrValueListModel

    //页面需要的
    isEdit?:boolean
}
//SPU销售属性列表类型
export type SpuSaleAttrListModel=SupSaleAttrMOdel[]


//SPU图片
export interface spuImageModel{
    id:number,
    spuId:number
    imgName:string
    imgUrl:string
    name?:string
    url?:string
}
//SPU图片列表
export type spuImageListModel=spuImageModel[]

//获取spu列表的参数类型
export interface SpuListParamsModel{
    page:number
    limit:number
    category3Id:number
}

//spu的类型
export interface SpuModel{
    category3Id:number|undefined
    description:string
    id?:number
    spuName:string
    tmId:number|undefined
    spuImageList:spuImageListModel
    spuSaleAttrList:SpuSaleAttrListModel
}

//spu数组的类型
export type SpuListModel=SpuModel[]

//SPU分页列表
export interface SpuPageListModel{
    total:number
    records:SpuListModel
}

//基础销售属性类型
export interface BaseSaleAttrModel{
    id:number
    name:string
}

//基础销售属性列表类型
export type BaseSaleAttrListModel=BaseSaleAttrModel[]